package com.jt.controller;

import com.jt.pojo.User;
import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    private UserService userService;

    private User user;

    public void setUser(User user) {
        this.user = user;
    }

    public void addUser(){


        userService.addUser(this.user);
    }
}
